﻿<Window x:Class="EMath.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="EMath" Height="400" Width="550" Margin="7" Icon="/EMath;component/Resources/EMath.ico" Closed="Window_Closed">
	<Window.CommandBindings>
		<CommandBinding Command="New" CanExecute="NewCanExecute" Executed="NewExecuted" />
		<CommandBinding Command="Open" CanExecute="OpenCanExecute" Executed="OpenExecuted" />
		<CommandBinding Command="Save" CanExecute="SaveCanExecute" Executed="SaveExecuted" />
		<CommandBinding Command="SaveAs" CanExecute="SaveAsCanExecute" Executed="SaveAsExecuted" />
		<CommandBinding Command="PrintPreview" CanExecute="PrintCanExecute" Executed="PrintPreviewExecuted" />
		<CommandBinding Command="Print" CanExecute="PrintCanExecute" Executed="PrintExecuted" />
		<CommandBinding Command="Close" CanExecute="CloseCanExecute" Executed="CloseExecuted" />
		<CommandBinding Command="Undo" CanExecute="UndoCanExecute" Executed="UndoExecuted" />
		<CommandBinding Command="Redo" CanExecute="RedoCanExecute" Executed="RedoExecuted" />
		<CommandBinding Command="Cut" CanExecute="CutCanExecute" Executed="CutExecuted" />
		<CommandBinding Command="Copy" CanExecute="CopyCanExecute" Executed="CopyExecuted" />
		<CommandBinding Command="Paste" CanExecute="PasteCanExecute" Executed="PasteExecuted" />
		<CommandBinding Command="Delete" CanExecute="DeleteCanExecute" Executed="DeleteExecuted" />
		<CommandBinding Command="Help" CanExecute="HelpCanExecute" Executed="HelpExecuted" />
	</Window.CommandBindings>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="25" />
			<RowDefinition Height="25" />
			<RowDefinition Height="325*" />
			<RowDefinition Height="25" />
		</Grid.RowDefinitions>
		<Menu Grid.Row="0" Name="menu1">
			<MenuItem Name="File" Header="Plik">
				<MenuItem Name="New" Header="Nowy" Command="New">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_New.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="Open" Header="Otwórz" Command="Open">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Open.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator Margin="0" />
				<MenuItem Name="Save" Header="Zapisz" Command="Save">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Save.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="SaveAs" Header="Zapisz jako" Command="SaveAs"/>
				<Separator Margin="0" />
				<MenuItem Name="PrintPreview" Header="Podgląd wydruku" Command="PrintPreview">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_PrintPreview.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="Print" Header="Drukuj" Command="Print">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Print.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator Margin="0" />
				<MenuItem Name="Exit" Header="Zamknij" Command="Close"/>
			</MenuItem>
			<MenuItem Name="Edit" Header="Edycja">
				<MenuItem Name="UnDo" Header="Cofnij" Command="Undo">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Undo.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="ReDo" Header="Powtórz" Command="Redo">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Redo.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator Margin="0" />
				<MenuItem Name="Cut" Header="Wytnij" Command="Cut">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Cut.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="Copy" Header="Kopiuj" Command="Copy">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Copy.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="Paste" Header="Wklej" Command="Paste">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Paste.png" />
					</MenuItem.Icon>
				</MenuItem>
				<Separator Margin="0" />
				<MenuItem Name="Clear" Header="Wyczyść" Command="Delete"/>
			</MenuItem>
			<MenuItem Name="View" Header="Widok">
				<MenuItem Name="ToolBar" Header="Pasek narzędzi" IsCheckable="True" />
				<MenuItem Name="StatusBar" Header="Pasek statusu" IsCheckable="True" />
			</MenuItem>
			<MenuItem Name="Accessories" Header="Akcesoria">
				<MenuItem Header="Konwerter" />
				<MenuItem Header="Kalkulator" />
			</MenuItem>
			<MenuItem Name="Tools" Header="Narzędzia">
				<MenuItem Name="Options" Header="Opcje" Click="Options_Click" />
			</MenuItem>
			<MenuItem Name="Help" Header="Pomoc">
				<MenuItem Name="HelpIndex" Header="Pomoc" Command="Help">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Help.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="StudyBook" Header="Podręcznik" Click="StudyBook_Click" />
				<Separator Margin="0" />
				<MenuItem Name="Update" Header="Aktualizacja" Click="Update_Click">
					<MenuItem.Icon>
						<Image Source="/EMath;component/Resources/Icons/Ico_Update.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Name="About" Header="O programie" Click="About_Click" />
			</MenuItem>
		</Menu>
		<ToolBar Grid.Row="1" Name="toolBar">
			<Button Name="TB_New" Command="New">
				<Image Source="/EMath;component/Resources/Icons/Ico_New.png" ToolTip="Nowy"/>
			</Button>
			<Button Name="TB_Open" Command="Open">
				<Image Source="/EMath;component/Resources/Icons/Ico_Open.png" ToolTip="Otwórz" />
			</Button>
			<Button Name="TB_Save" Command="Save">
				<Image Source="/EMath;component/Resources/Icons/Ico_Save.png" ToolTip="Zapisz" />
			</Button>
			<Separator/>
			<Button Name="TB_Cut" Command="Cut">
				<Image Source="/EMath;component/Resources/Icons/Ico_Cut.png" ToolTip="Wytnij" />
			</Button>
			<Button Name="TB_Copy" Command="Copy">
				<Image Source="/EMath;component/Resources/Icons/Ico_Copy.png" ToolTip="Kopiuj" />
			</Button>
			<Button Name="TB_Paste" Command="Paste">
				<Image Source="/EMath;component/Resources/Icons/Ico_Paste.png" ToolTip="Wklej" />
			</Button>
			<Separator/>
			<Button Name="TB_PrintPreview" Command="PrintPreview">
				<Image Source="/EMath;component/Resources/Icons/Ico_PrintPreview.png" ToolTip="Podgląd wydruku" />
			</Button>
			<Button Name="TB_Print" Command="Print">
				<Image Source="/EMath;component/Resources/Icons/Ico_Print.png" ToolTip="Drukuj" />
			</Button>
			<Separator/>
			<Button Name="TB_Help" Command="Help">
				<Image Source="/EMath;component/Resources/Icons/Ico_Help.png" ToolTip="Pomoc" />
			</Button>
		</ToolBar>
		<ContentControl Name="ControlPanel" Grid.Row="2" Visibility="Hidden" IsVisibleChanged="ControlPanel_IsVisibleChanged">
		</ContentControl>
		<ContentControl Name="ChoseControl" Grid.Row="2" >
			<TabControl>
				<TabItem Header="Artymetyka" Name="TI_Arithmetic">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="259*" />
							<ColumnDefinition Width="259*" />
						</Grid.ColumnDefinitions>
						<GroupBox Header="Dziedziny" Name="GB_Arithmetic" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_Arithmetic">
										<Button Height="40" Name="B_1" Width="100" Margin="7" FontSize="10" Click="B_1_Click">
											<TextBlock Text="Działania na liczbach i wyrażeniach" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_PrimeNumbers" Width="100" Margin="7" FontSize="12" Click="B_PrimeNumbers_Click">
											<TextBlock Text="Liczby pierwsze" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Divisibility" Width="100" Margin="7" FontSize="12" Click="B_Divisibility_Click">
											<TextBlock Text="Podzielność liczb" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_NumeralSystems" Width="100" Margin="7" FontSize="12" Click="B_NumeralSystems_Click">
											<TextBlock Text="Systemy liczbowe" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Sets" Width="100" Margin="7" FontSize="12" Click="B_Sets_Click">
											<TextBlock Text="Zbiory" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
						<GroupBox Grid.Column="1" Header="Twierdzenia" Name="GB_ArithmeticT" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_ArithmeticT"></WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
					</Grid>
				</TabItem>
				<TabItem Name="TI_Algebra" Header="Algebra" >
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="259*" />
							<ColumnDefinition Width="259*" />
						</Grid.ColumnDefinitions>
						<GroupBox Header="Dziedziny" Name="GB_Algebra" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_Algebra">
										<Button Height="40" Name="B_FieldOfSets" Width="100" Margin="7" FontSize="12" Click="B_FieldOfSets_Click">
											<TextBlock Text="Algebra zbiorów" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_MathematicalInduction" Width="100" Margin="7" FontSize="12" Click="B_MathematicalInduction_Click">
											<TextBlock Text="Indukcja matematyczna" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Combinatorics" Width="100" Margin="7" FontSize="12" Click="B_Combinatorics_Click">
											<TextBlock Text="Kombinatoryka" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_MathematicalLogic" Width="100" Margin="7" FontSize="12" Click="B_MathematicalLogic_Click">
											<TextBlock Text="Logika matematyczna" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Matrix" Width="100" Margin="7" FontSize="12" Click="B_Matrix_Click">
											<TextBlock Text="Macierze" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_ProbabilityTheory" Width="100" Margin="7" FontSize="9" Click="B_ProbabilityTheory_Click">
											<TextBlock Text="Rachunek prawdopodobieństwa" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Relations" Width="100" Margin="7" FontSize="12" Click="B_Relations_Click">
											<TextBlock Text="Relacje" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_AlgebraicEquation" Width="100" Margin="7" FontSize="12" Click="B_AlgebraicEquation_Click">
											<TextBlock Text="Równania" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Formula" Width="100"  Margin="7" FontSize="12" Click="B_Formula_Click">
											<TextBlock Text="Wyrażenia algebraiczne" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
						<GroupBox Grid.Column="1" Header="Twierdzenia" Name="GB_AlgebraT" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_AlgebraT">
										<Button Height="40" Name="B_DeMorgan" Width="100" Margin="7" FontSize="12" Click="B_DeMorgan_Click">
											<TextBlock Text="De Morgana" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
					</Grid>
				</TabItem>
				<TabItem Name="TI_Geometry" Header="Geometria" >
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="259*" />
							<ColumnDefinition Width="259*" />
						</Grid.ColumnDefinitions>
						<GroupBox Header="Dziedziny" Name="GB_Geometry" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_Geometry">
										<Button Height="40" Name="B_AnalyticGeometry" Width="100" Margin="7" FontSize="12" Click="B_AnalyticGeometry_Click">
											<TextBlock Text="Geometria analityczna" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Planimetrics" Width="100" Margin="7" FontSize="12" Click="B_Planimetrics_Click">
											<TextBlock Text="Planimetria" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Stereometrics" Width="100" Margin="7" FontSize="12" Click="B_Stereometrics_Click">
											<TextBlock Text="Stereometria" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Trigonometry" Width="100" Margin="7" FontSize="12" Click="B_Trigonometry_Click">
											<TextBlock Text="Trygonometria" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
						<GroupBox Grid.Column="1" Header="Twierdzenia" Name="GB_GeometryT" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_GeometryT">
										<Button Height="40" Name="B_Pitagors" Width="100" Margin="7" FontSize="12" Click="B_Pitagors_Click">
											<TextBlock Text="Pitagorasa" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Tales" Width="100" Margin="7" FontSize="12" Click="B_Tales_Click">
											<TextBlock Text="Talesa" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
					</Grid>
				</TabItem>
				<TabItem Name="TI_Analysis" Header="Analiza" >
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="259*" />
							<ColumnDefinition Width="259*" />
						</Grid.ColumnDefinitions>
						<GroupBox Header="Dziedziny" Name="GB_Analysis" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_Analysis">
										<Button Height="40" Name="B_NumericalSequences" Width="100" Margin="7" FontSize="12" Click="B_NumericalSequences_Click">
											<TextBlock Text="Ciągi liczbowe" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Statistics" Width="100" Margin="7" FontSize="12" Click="B_Statistics_Click">
											<TextBlock Text="Statystyka" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Functions" Width="100" Margin="7" FontSize="12" Click="B_Functions_Click">
											<TextBlock Text="Funkcje i ich właściwości" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_LimitsAndContinuityOfFunctions" Width="100" Margin="7" FontSize="12" Click="B_LimitsAndContinuityOfFunctions_Click">
											<TextBlock Text="Granica i ciągłość funkcji" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
										<Button Height="40" Name="B_Calculus" Width="100" Margin="7" FontSize="12" Click="B_Calculus_Click">
											<TextBlock Text="Rachunek różniczkowy" TextWrapping="WrapWithOverflow" TextAlignment="Center" />
										</Button>
									</WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
						<GroupBox Grid.Column="1" Header="Twierdzenia" Name="GB_AnalysisT" FontSize="18">
							<Grid>
								<ScrollViewer VerticalScrollBarVisibility="Auto">
									<WrapPanel Name="WP_AnalysisT"></WrapPanel>
								</ScrollViewer>
							</Grid>
						</GroupBox>
					</Grid>
				</TabItem>
			</TabControl>
		</ContentControl>
		<StatusBar Grid.Row="3" Name="statusBar" />
	</Grid>
</Window>